package com.ssy.lingxi.settle.accounts.repository;

import com.ssy.lingxi.settle.accounts.entity.MemberReceiptInvoiceDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 会员收据发票
 * @author 伍将
 * @date 2020/10/27
 * @version 2.0.0
 */
public interface MemberReceiptInvoiceRepository extends JpaRepository<MemberReceiptInvoiceDO, Long>, JpaSpecificationExecutor<MemberReceiptInvoiceDO> {

    /**
     * 根据单据号与单据类型查询开票单据
     * @author 伍将
     * @date 2021/1/27
     * @param orderNo 单据号
     * @param settlementOrderType 单据类型
     * @return 开票单据
     **/
    List<MemberReceiptInvoiceDO> findAllByOrderNoAndSettlementOrderType(String orderNo, Integer settlementOrderType);

}

